Skip to main content

mediaFoundationReaderDuration

Type

function

Summary

Get the duration of the media file. Platform:desktop

Syntax

mediaFoundationReaderDuration(<pFilePath>)

Description

The reader must already be created with mediaFoundationCreateReader. The value returned is in 100 nanosecond units.

*Note

*:See the mediaFoundationTranscode documentation for a complete example of using this handler.

Parameters

NameTypeDescription

pFilePath

string

The path to a media file

command: mediaFoundationTranscode, mediaFoundationCreateReader

Compatibility and Support

OS

windows

Thank you for your feedback!

Was this page helpful?